import * as v from 'valibot';

export const UserPerm = v.object({
    id: v.number(),
    username: v.string(),
    full_name: v.string(),
    is_superuser: v.boolean(),
    is_staff: v.boolean(),
    link: v.string(),
    user_group_type: v.string(),
    perm_can_manage_projects: v.boolean(),
    perm_can_manage_users: v.boolean(),
    perm_can_manage_resources: v.boolean()
});

export type UserPerm = v.InferOutput<typeof UserPerm>
